package com.bdqn.struts.action;

import com.bdqn.struts.entity.Login;
import com.opensymphony.xwork2.ActionSupport;

public class LoginActionB extends ActionSupport {
    private String nextDispose;
    @Override
    public String execute() throws Exception {
        Login login = new Login(50,"lisi","123456",23,true);
        if (login.isFlag()){
            nextDispose="manage";
        }else{
            nextDispose="comment";
        }
        return "success";
    }

    public String getNextDispose() {
        return nextDispose;
    }

    public void setNextDispose(String nextDispose) {
        this.nextDispose = nextDispose;
    }
}
